

var express = require('express');
var router = express.Router();
var sqlQuery = require('../../../module/sql');

/* GET users listing. */
//删除轮播图
router.get('/',async(req,res)=>{
  let userid = req.query.userid
  let sqlStr = "delete from slide where id = ?";
  let result = await sqlQuery(sqlStr,[userid])
  res.json({
    state:"ok",
    content:Array.from(result)
  })
})

module.exports = router;
